package com.oepm.dao.entity;

import com.oepm.dao.entity.UserPo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVo {
    private String id;
    private String userid;
    private String name;
    private String sex;
    private String academy;
    private String rank;
    private String stu_major;
    private String role;
    private String roleId;
    private String password;

    public UserVo(UserPo userPo){
        this.id =  userPo.getId();
        this.userid = userPo.getUserid();
        this.password = userPo.getPassword();
        this.name = userPo.getName();
        this.sex = userPo.getSex_one();
        this.academy = userPo.getAcademy();
        this.stu_major = userPo.getMajor();
        this.role = userPo.getRole();
    }

}
